package aiku.numericalcontroloa.project.system.service;

import aiku.numericalcontroloa.project.system.pojo.entity.SysMenu;
import aiku.numericalcontroloa.project.system.pojo.query.SysMenuParams;
import aiku.numericalcontroloa.project.system.pojo.query.SysRoleParams;
import aiku.numericalcontroloa.project.system.pojo.vo.SysMenuVo;

import java.util.List;

public interface SysMenuService {


    int deleteByPrimaryKey(SysMenuParams params);

    int insert(SysMenu record);

    SysMenu selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(SysMenu record);

    List<SysMenuVo> menuTree(String uid);

    List<SysMenu> allMenuTree();

    List<SysMenu> listByRoleId(SysRoleParams query);

    List<SysMenu> onlyAllMenuTree();

    List<SysMenu> selectChildByPrimaryKey(SysMenuParams query);
}
